#include <iostream>
#include <string>
using namespace std;

//ios::sync_with_stdio(false);
//cin.tie(nullptr);

int in() {
	int res = 0, flag = 1;
	char c = getchar();
	while (c > '9' || c < '0') {
		if (c == '-')
			flag = -1;
		c = getchar();
	}
	while (c >= '0' && c <= '9')
    {
        res = res * 10 + c - '0';
        c = getchar();
    }
	return res * flag;
}

int main()
{
	int n = in();
	int ans = 0;
	while (n--)
		ans += in();
	cout << ans << endl;
	return 0;
}

